package ma.techit.pfe.agence.voyage.bo.implementation;

import java.util.List;

import ma.techit.pfe.agence.voyage.bo.interfaces.ServiceVolBoIn;
import ma.techit.pfe.agence.voyage.dao.implementation.ServiceVolDao;
import ma.techit.pfe.agence.voyage.model.ServiceVol;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("ServiceVolBo")
@Transactional
public class ServiceVolBo implements ServiceVolBoIn {

	@Autowired
	ServiceVolDao serviceVolDao;
	public void save(ServiceVol serviceVol) {
		// TODO Auto-generated method stub
		serviceVolDao.save(serviceVol);
		
	}

	public void update(ServiceVol serviceVol) {
		// TODO Auto-generated method stub
		serviceVolDao.update(serviceVol);
		
	}

	public void delete(Long id) {
		// TODO Auto-generated method stub
		serviceVolDao.delete(id);
		
	}

	public ServiceVol findByID(Long id) {
		// TODO Auto-generated method stub
		return serviceVolDao.findByID(id);
	}

	public List<ServiceVol> findAll() {
		// TODO Auto-generated method stub
		return serviceVolDao.findAll();
	}

	public List<ServiceVol> find(int jtStartIndex, int jtPageSize) {
		// TODO Auto-generated method stub
		return serviceVolDao.find(jtStartIndex, jtPageSize);
	}

	public int countAllService() {
		// TODO Auto-generated method stub
		return serviceVolDao.countAllService();
	}

}
